//
//  ViewController.h
//  AccuroFit
//
//  Created by Yongfeng Li on 8/6/15.
//  Copyright (c) 2015 Nci Technology Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIBottView.h"
#import "UIWgtMeasType.h"
#import "UIRingMeter.h"

#import "NcitWiFiDev.h"
#import "NcitBleDevice.h"

#import "AppDelegate.h"
#import "BaseViewController.h"
@class H_Rate;

@interface ViewController : BaseViewController<NIDropDownDelegate, BottViewDelegate, WgtTypeDelegate, NcitWiFiDevDelegate, NcitBleDevDelegate, MeterTxtDevDelegate, GoalDataDelegate, NSURLSessionDataDelegate, NSURLSessionTaskDelegate>

@property(assign, nonatomic) NSInteger nHrateId;
@property(assign, nonatomic) BOOL m_bSyncStepData;
@property(assign, nonatomic) CGFloat fBatterylvl;
@property(assign, nonatomic) BOOL m_bUpdedWgtInfo;

@property(assign, nonatomic) float fBodyLastWgt;
@property(assign, nonatomic) short nBodyLastWu;

- (void) drawMeasRingMeter;
- (void) updateUserInfo:(NSString *)sName age:(short)nAge hgt:(NSString *)sHgt;
- (void) storeHrmMeasPoint:(NSInteger)nHrateId hrate:(H_Rate*)pHrate dtStart:(NSDate*)dtPoint calry:(CGFloat)fCalry dur:(CGFloat*)pfDurHrate avg:(short)nAvgHrate size:(short)nCount blvl:(CGFloat)fBlvl;
- (CGFloat*) getStoreRngDurTime;
- (void) updateGoalData;

- (void) updateBodyWgtInfo:(float)fLfat wgt:(float)fWgt;
- (void) updateLabelTips:(NSString*)sMsg;

- (void) setMsgTitle:(NSString *)sTitle;
- (void) getLastBodyInfo;

@end

